<?php
class Conf_importar_excel extends Modelo_base {

	var $table = 'conf_importar_excel';

    var $has_one = array('persona');

    // Optionally, don't include a constructor if you don't need one.
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }

    // Validaciones de campos
    var $validation = array(
        'col_codigo' => array(
            'label' => 'Columna del Código de Producto',
            'rules' => array('required', 'trim', 'max_length' => 3),
            'get_rules' => array('trim')
            ),
        'col_importe_pesos' => array(
            'label' => 'Columna del Importe (pesos)',
            'rules' => array('trim', 'max_length' => 3),
            'get_rules' => array('trim')
            ),
        'col_importe_dolares' => array(
            'label' => 'Columna del Importe (dólares)',
            'rules' => array('trim', 'max_length' => 3),
            'get_rules' => array('trim')
            ),
        'persona' => array(
            'label' => 'Proveedor',
            'rules' => array('required')
            ),
        'cant_filas_cabecera' => array(
            'label' => 'Cantidad de filas de la cabecera',
            'rules' => array('integer')
            ),
    );
}

/* End of file conf_importar_excel.php */
/* Location: ./application/models/conf_importar_excel.php */